import java.util.*;

public class RenovationProject {

	public static void main(String[] args) {
		StructuredObject renovation = new StructuredObject();
		StructuredObject so1 = new StructuredObject();
		Surface s1 = new Surface(2.0, 3.0);
		Surface s2 = new Surface(3.0, 4.0);
		Surface s3 = new Surface(2.0, 3.0);
		Material m1 = new Flooring("PVC rot", 10.0, 2.0);
		Material m2 = new Paint("Innenfarbe weiss", 50.0, 2, 10.0);
		s1.setMaterial(m1);
		s2.setMaterial(m2);
		s3.setMaterial(m1);
		renovation.add(s1);
		renovation.add(so1);
		so1.add(s1);
		so1.add(s2);
		so1.add(s2);
		printMaterialOrder(renovation);
	}
	
	
	
	private static void printMaterialOrder(RenovationObject o) {
		Map<String, Double> materials = new TreeMap<String, Double>();
		System.out.println(o.addMaterialReq(materials));
		System.out.println("Gesamtkosten des Projektes: " +
		o.getPrice());
	}
}